<%if(custom=="tree"){%>
  <%~render("mos/mo_tree.html.gst",["moType":moType])%>
<%} else if (custom=="package") {%>
  ...
<%}%>